home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / General / GCC 1.37.1r15 / Tests / fix-no-rtd.c < prev    next >
C/C++ Source or Header  |  1992-12-11  |  328b  |  17 lines

  1. /* Compile with -fomit-frame-pointer, should generate RTS instead of RTD
  2.    to return from foo. */
  3.  
  4. /* (Declaring foo to be pascal generates a garbage move insn with arg of 12345.) */
  5.  
  6. struct rect { short a, b, c, d; };
  7.  
  8. struct rect glob, glob2;
  9.  
  10. struct rect foo(int x)
  11. {
  12.     glob.a = x;
  13.     return glob;
  14. }
  15.  
  16. main() { bar(foo(789)); }
  17.